package com.ruoyi.petition.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 律师信息对象 lawyer_info
 *
 * @author ZWX
 * @date 2025-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("lawyer_info")
public class LawyerInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private String sex;

    /**
     * 性别名称
     */
    @TableField(exist = false)
    private String sexName;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String phone;

    /**
     * 头像
     */
    @Excel(name = "头像")
    private String avatarImg;

    /**
     * 执业年限
     */
    @Excel(name = "执业年限")
    private Long practiceYears;

    /**
     * 学历
     */
    @Excel(name = "学历")
    private String education;

    /**
     * 毕业院校
     */
    @Excel(name = "毕业院校")
    private String graduationSchool;

    /**
     * 律师执业证号
     */
    @Excel(name = "律师执业证号")
    private String lawyerCode;

    /**
     * 简介
     */
    @Excel(name = "简介")
    private String introduction;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("sex", getSex())
                .append("phone", getPhone())
                .append("avatarImg", getAvatarImg())
                .append("practiceYears", getPracticeYears())
                .append("education", getEducation())
                .append("graduationSchool", getGraduationSchool())
                .append("lawyerCode", getLawyerCode())
                .append("introduction", getIntroduction())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
